package com.cainaer.member.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 会员登录表
 * </p>
 *
 * @author Tina
 * @since 2020-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会员自增ID
     */
    @TableId(value = "member_id", type = IdType.AUTO)
    private Integer memberId;

    /**
     * 手机号码
     */
    private Long tel;

    /**
     * 会员头像
     */
    private String memberImg;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 微信TOKEN
     */
    private String wxToken;

    /**
     * 用户融云token
     */
    private String imToken;

    /**
     * openID 用户识别
     */
    private String openId;

    /**
     * 账号状态(0正常,1异常)
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 更新时间
     */
    private String updateTime;

    /**
     *  会员信息模型
     */
    @TableField(exist = false)
    private MemberInfo memberInfo;
}
